package com.song.EMS.bean;


import java.sql.Timestamp;

/**管理员对象
 * @author song
 */
public class Administrator {
    private Integer administratorId;
    private String administratorName;
    private String password;
    private String administratorPhone;
    private Timestamp loginTime;
    private String ipAddress;
    private Timestamp registerTime;

    public Administrator() {
    }

    public Administrator(Integer administratorId, String administratorName, String password, String administratorPhone, Timestamp loginTime, String ipAddress, Timestamp registerTime) {
        this.administratorId = administratorId;
        this.administratorName = administratorName;
        this.password = password;
        this.administratorPhone = administratorPhone;
        this.loginTime = loginTime;
        this.ipAddress = ipAddress;
        this.registerTime = registerTime;
    }

    public Administrator(String administratorName, String password, String administratorPhone, Timestamp registerTime) {
        this.administratorName = administratorName;
        this.password = password;
        this.administratorPhone = administratorPhone;
        this.registerTime = registerTime;
    }

    public Integer getAdministratorId() {
        return administratorId;
    }

    public void setAdministratorId(Integer administratorId) {
        this.administratorId = administratorId;
    }

    public String getAdministratorName() {
        return administratorName;
    }

    public void setAdministratorName(String administratorName) {
        this.administratorName = administratorName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAdministratorPhone() {
        return administratorPhone;
    }

    public void setAdministratorPhone(String administratorPhone) {
        this.administratorPhone = administratorPhone;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "Administrator{" +
                "administratorId=" + administratorId +
                ", administratorName='" + administratorName + '\'' +
                ", password='" + password + '\'' +
                ", administratorPhone='" + administratorPhone + '\'' +
                ", loginTime=" + loginTime +
                ", ipAddress='" + ipAddress + '\'' +
                ", registerTime=" + registerTime +
                '}';
    }
}
